
import request from '@/utils/request'

export function getFormConfigInfo(pram) {
  const data = {
    id: pram.id
  }
  return request({
    url: '/admin/merchant/form/temp/info',
    method: 'GET',
    params: data
  })
}

/**
 * 发送海外短信开关
 * @param pram
 */
export function overseaSwitch(id) {
  return request({
    url: `/admin/system/notification/oversea/sms/switch/${id}`,
    method: 'post'
  })
}

/**
 * 通知详情
 * @param pram
 */
export function notificationDetail(param) {
  const data = {
    detailType: param.type,
    id: param.id
  }
  return request({
    url: `/admin/system/notification/detail`,
    method: 'get',
    params: data
  })
}

// admin/system/notification/detail
/**
 * 修改通知
 * @param pram
 */
export function notificationUpdate(param) {
  const data = {
    detailType: param.type,
    id: param.id,
    status: param.status,
    tempId: param.tempId
  }
  return request({
    url: `/admin/system/notification/update`,
    method: 'post',
    data
  })
}
